package com.xiao.gitstudy.dao;

import com.xiao.gitstudy.pojo.User;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class UserDao {

    /**
     * 获取一个User对象
     *
     * @return com.xiao.gitstudy.User
     */
    public User getUser() {
        return new User(1, "laoXiao", 18, new Date());
    }
}
